package org.mistlab.models
{
    import org.mistlab.core.CoreModel;    
    import org.papervision3d.objects.parsers.Collada;
    import org.papervision3d.materials.utils.MaterialsList;
    import org.papervision3d.materials.BitmapMaterial;

    public class Yogi extends CoreModel
    {
	    
	    private var _yogi:Collada;
	    
    	public function Yogi()
    	{
    		
    		super();            
            var materialList:MaterialsList = new MaterialsList();
            var bitmapMaterial:BitmapMaterial = new BitmapMaterial(storage.getBitmapData('Yogi.texture'));            
            materialList.addMaterial(bitmapMaterial,"all");
            
            _yogi = new Collada(new XML(storage.getText('Yogi.model')), materialList);
            _yogi.z = -150;
            _yogi.y = 15;
    		
    		addChild(_yogi);
    	}
	
    }

}